import java.util.Scanner;

class ScannerApp 
{

	static Scanner sc = new Scanner(System.in);
	
	public static void main(String[] args)
	{
		System.out.print("Enter an integer: ");
		byte x = sc.nextByte();
		System.out.println("You entered " + x + ".");
// If I enter "300" when set for byte an error message
// appears because 300 is out of range.
	}
}
